<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="templateEntity :: entity_header(~{::title})">
    <meta charset="UTF-8"/>
    <title></title>
</head>
<body th:replace="templateEntity :: entity_body(~{::#content-container},~{::script})">
<div id="content-container">
    <div class="layui-custom-inline">
        <div class="layui-form-item layui-custom-form-item">
            <label class="layui-form-label">物料名称</label>
            <div class="layui-input-block">
                <input type="text" name="name" th:value="${entity.name}" lay-verify="required" maxlength="100"
                       placeholder="请输入物料名称" autocomplete="off" class="layui-input"/>
            </div>
        </div>
        <div class="layui-form-item layui-custom-form-item">
            <label class="layui-form-label">所属大类</label>
            <div class="layui-input-block">
                <select name="clfl" lay-search>
                    <option value="" th:text="--请选择类别--"></option>
                    <option th:each="p:${listWlfl}" th:value="${p.id}" th:text="${p.mc}"
                            th:selected="${entity.clfl == p.id}?true:false">
                    </option>
                </select>
            </div>
        </div>
    </div>
    <div class="layui-custom-inline">
        <div class="layui-form-item layui-custom-form-item">
            <label class="layui-form-label">维修方式</label>
            <div class="layui-input-block">
                <input type="text" name="wxfs" th:value="${entity.wxfs}" lay-verify="required" maxlength="100"
                       placeholder="请输入维修方式" autocomplete="off" class="layui-input"/>
            </div>
        </div>
        <div class="layui-form-item layui-custom-form-item">
            <label class="layui-form-label">计量单位</label>
            <div class="layui-input-block">
                <input type="text" name="dw" th:value="${entity.dw}" lay-verify="required" maxlength="100"
                       placeholder="请输入计量单位" autocomplete="off" class="layui-input"/>
            </div>
        </div>
    </div>
    <div class="layui-custom-inline">
        <div class="layui-form-item layui-custom-form-item">
            <label class="layui-form-label">材料费(元)</label>
            <div class="layui-input-block">
                <input type="number" name="clf" th:value="${entity.clf}" lay-verify="required" maxlength="100"
                       placeholder="请输入材料费" autocomplete="off" class="layui-input"/>
            </div>
        </div>
        <div class="layui-form-item layui-custom-form-item">
            <label class="layui-form-label">工时费(元)</label>
            <div class="layui-input-block">
                <input type="number" name="gsf" th:value="${entity.gsf}" lay-verify="required" maxlength="100"
                       placeholder="请输入工时费" autocomplete="off" class="layui-input"/>
            </div>
        </div>
    </div>
</div>
<script></script>
</body>
</html>